package com.twu.biblioteca.view.command;

import com.google.inject.Inject;

import com.twu.biblioteca.controller.UserController;
import com.twu.biblioteca.view.console.ConsoleViewController;

public class UserInfoCommand extends Command {
  private final UserController controller;

  @Inject
  public UserInfoCommand(UserController controller) {
    this.controller = controller;
  }

  @Override
  public void execute(ConsoleViewController viewController) {
    String libraryNumber = viewController.getUserLibraryNumber();
    this.controller.getUserInfo(libraryNumber);
  }
}
